﻿using System.Runtime.CompilerServices;
using NLog;

namespace Common
{
    public class NLogManager
    {
        public static void Info(string message, [CallerMemberName] string logName = "")
        {
            LogManager.GetLogger(logName).Info(message);
        }

        public static void Warning(string message, [CallerMemberName] string logName = "")
        {
            LogManager.GetLogger(logName).Info(message);
        }

        public static void Error(string message, [CallerMemberName] string logName = "")
        {
            LogManager.GetLogger(logName).Info(message);
        }
    }
}
